<template>
	<view class="curentPage">
		<view class="avatar-nick-level-time" v-for="item in list" @click="to">
			<view class="avatar">
				<image src="https://www.auok.ltd/background.jpg" mode="aspectFill"></image>
			</view>
			<view class="nick-level-time">
				<view class="nick-level">
					<view class="nick">天干物燥</view>
					<view class="level">LV.13</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{}, {}, {}, {}]
			};
		},
		onLoad(e) {
			let title = ''
			if (e.flag === '1') {
				title = '关注（1）'
			} else {
				title = '粉丝(2)'
			}
			uni.setNavigationBarTitle({
				title
			})
		},
		methods: {
			to() {
				uni.navigateTo({
					url: '/pages/profileHome/profileHome'
				})
			}
		}

	}
</script>

<style lang="scss">
	.curentPage {
		min-height: 100vh;
		background-color: rgba($color: gray, $alpha: .1);
	}

	.avatar-nick-level-time {
		display: flex;
		align-items: center;
		background-color: #FFFFFF;
		padding: 10rpx 30rpx;
		margin-bottom: 2rpx;

		.nick-level-time {
			.nick-level {
				display: flex;
				align-items: center;

				.nick {
					margin-right: 15rpx;
					color: #333;
					font-size: 32rpx;
				}

				.level {
					font-size: 24rpx;
					color: #FFFFFF;
					background-color: #ff4273;
					padding: 4rpx 8rpx;
					border-radius: 8rpx;
					transform: scale(.8);
				}
			}

			.time {
				color: rgba(127, 127, 127, .3);
				margin-top: 15rpx;
				font-size: 26rpx;

			}
		}

		.avatar {
			margin-right: 20rpx;

			image {
				height: 80rpx;
				width: 80rpx;
				border-radius: 50%;
			}

		}
	}
</style>
